{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}I:\Sebastian\Statistics\Stata\Stata13\fpa-bitsaid-appendix-d.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}29 Jul 2025, 13:25:54
{txt}
{com}. version 13.1
{txt}
{com}. 
. **Alternative Estimators
. 
. use fpa-aid_bits_final,clear
{txt}
{com}. 
. //table 28: ivreg with panel data: re
. 
. set more off
{txt}
{com}. sort dyad year
{txt}
{com}. 
. quietly xtivreg lnaid l.lnaid l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta unsc_member ally coldwar colonial_tie ln_distance  ///
> (l.bit_ratf = l.lnt_bit) if oecd_i==1&oecd_j==0, re first vce(conventional)
{txt}
{com}. 
. outreg2 using bits_aid3, label word dec(3) e(N_clust) replace addtext() noni nor2 ctitle("Two-Stage Random Effect") sortvar(l.bit_ratf l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.gdpgr_i l.pta unsc_member ally coldwar)
{txt}{stata `"shellout using `"bits_aid3.rtf"'"':bits_aid3.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid3.txt", label"':seeout}

{com}. 
. //table a29
. 
. ///ivreg w re
> 
. set more off
{txt}
{com}. sort dyad year
{txt}
{com}. 
. gen inter1=bit_ratf*dpi_yio
{txt}(187,662 missing values generated)

{com}. gen inter1_ex=lnt_bit*dpi_yio
{txt}(187,662 missing values generated)

{com}. 
. quietly xtivreg lnaid l.lnaid l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar colonial_tie ln_distance yr* ///
> (l.bit_ratf l.inter1= l.lnt_bit l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2>=6&p_polity2!=., re first vce(conventional)
{txt}
{com}. 
. outreg2 using bits_aid3, label word dec(3) e(N_clust) replace addtext(Time trend, Y, Dyad FE, N) noni nor2 cttop(Two-Stage Random Effect) ctitle("Democracy") 
{txt}{stata `"shellout using `"bits_aid3.rtf"'"':bits_aid3.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid3.txt", label"':seeout}

{com}. 
. quietly xtivreg lnaid l.lnaid l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar colonial_tie ln_distance yr* ///
> (l.bit_ratf l.inter1= l.lnt_bit  l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2<6&p_polity2!=., re first vce(conventional)
{txt}
{com}. 
. outreg2 using bits_aid3, label word dec(3) e(N_clust) append addtext(Time trend, Y, Dyad FE, N) nor2 ctitle("Non-Democracy") drop(yr yrsq)
{txt}{stata `"shellout using `"bits_aid3.rtf"'"':bits_aid3.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid3.txt", label"':seeout}

{com}. 
. /// gmm
> 
. xtset dyad year
{res}
{col 1}{txt:Panel variable: }{res:dyad}{txt: (unbalanced)}
{p 1 16 2}{txt:Time variable: }{res:year}{txt:, }{res:{bind:1971}}{txt: to }{res:{bind:2012}}{txt:, but with gaps}{p_end}
{txt}{col 10}Delta: {res}1 unit
{txt}
{com}. 
. quietly xtabond2 lnaid L.lnaid L.(bit_ratf p_polity2 ln_gdppc wdi_gdpgr wdi_fdiin wdi_natrr lnpop conflict gdpgr_i pta )unsc_member ally colonial_tie ln_distance coldwar  if oecd_i==1&oecd_j==0, ///
> gmm(L.(lnaid ln_gdppc wdi_natrr gdpgr_i), lag(2 1)) iv(l2.lnt_bit, eq(both)) h(2) robust twostep
{txt}
{com}. 
. outreg2 using bits_aid3, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("GMM") sortvar(l.bit_ratf l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.gdpgr_i l.pta unsc_member ally coldwar)
{txt}{stata `"shellout using `"bits_aid3.rtf"'"':bits_aid3.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid3.txt", label"':seeout}

{com}. 
. ///random effect
> quietly xtreg lnaid l.lnaid l.bit_ratf l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta unsc_member ally coldwar colonial_tie ln_distance ///
> if oecd_i==1&oecd_j==0, robust cluster(dyad)
{txt}
{com}. 
. outreg2 using bits_aid3, label word dec(3)e(N_clust) append addtext() noni nor2 ctitle("One Stage Random Effects") sortvar(l.bit_ratf l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta unsc_member ally coldwar)
{txt}{stata `"shellout using `"bits_aid3.rtf"'"':bits_aid3.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid3.txt", label"':seeout}

{com}. 
. 
. ///exclude us
> 
. use fpa-aid_bits_final,clear
{txt}
{com}. 
. set more off
{txt}
{com}. sort dyad year
{txt}
{com}. 
. //table a30
. 
. teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&cowcode!=2

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 9.992e-23}  
Iteration 1:{space 2}EE criterion = {res: 1.187e-31}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    94,463
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.967875{col 26}{space 2} .1225692{col 37}{space 1}   32.37{col 46}{space 3}0.000{col 54}{space 4} 3.727644{col 67}{space 3} 4.208106
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.029977{col 26}{space 2} .0262353{col 37}{space 1}  191.73{col 46}{space 3}0.000{col 54}{space 4} 4.978557{col 67}{space 3} 5.081397
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid30, label word dec(3) e(n1 n0) replace addtext() noni nor2 ctitle("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid30.rtf"'"':bits_aid30.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid30.txt", label"':seeout}

{com}. 
. //table a31: democracies 
. ///short time horizon
> 
. quietly teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio<4&dpi_yio!=.&p_polity2>=6&p_polity2!=.&cowcode!=2
{txt}
{com}. 
. outreg2 using bits_aid31, label word dec(3) e(n1 n0) replace ctitle(Democracy short) noni nor2 sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid31.rtf"'"':bits_aid31.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid31.txt", label"':seeout}

{com}. 
. ///long time horizon
> 
. quietly teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio>=4&dpi_yio!=.&p_polity2>=6&p_polity2!=.&cowcode!=2
{txt}
{com}. 
. outreg2 using bits_aid31, label word dec(3) e(n1 n0) append ctitle(Democracy long) noni nor2 cttop("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid31.rtf"'"':bits_aid31.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid31.txt", label"':seeout}

{com}. 
. //table a32: non-democracies
. //short time horizon
. quietly teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio<10&dpi_yio!=.&p_polity2<6&p_polity2!=.&cowcode!=2
{txt}
{com}. 
. outreg2 using bits_aid32, label word dec(3) e(n1 n0) append ctitle(Non-democracy short) noni nor2 sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid32.rtf"'"':bits_aid32.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid32.txt", label"':seeout}

{com}. 
. ///long time horizon
> 
. quietly teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio>10&dpi_yio!=.&p_polity2<6&p_polity2!=.&cowcode!=2
{txt}
{com}. 
. outreg2 using bits_aid32, label word dec(3) e(n1 n0) append ctitle(Non-democracy long) noni nor2 cttop("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid32.rtf"'"':bits_aid32.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid32.txt", label"':seeout}

{com}. 
. //2-stage fe excluding US
. //table a33
. quietly xtivreg2 lnaid l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* ///
> (lbit_ratf = l.lnt_bit) if cowcode!=2&oecd_i==1&oecd_j==0, fe first savefirst cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) drop(yr*)replace ctitle("2nd stage") noni nor2 title("Excluding the US")
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. est restore _xtivreg2_lbit_ratf
{txt}(results {stata estimates replay _xtivreg2_lbit_ratf:_xtivreg2_lbit_ratf} are active now)

{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext(Time trend, Y, Dyad FE, Y) noni nor2 ctitle("1st stage")drop(yr yrsq)
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. //table a34
. gen inter1=bit_ratf*dpi_yio
{txt}(187,662 missing values generated)

{com}. gen inter1_ex=lnt_bit*dpi_yio
{txt}(187,662 missing values generated)

{com}. 
. ///democratic hosts
> xtivreg2 lnaid l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* ///
> (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if cowcode!=2&oecd_i==1&oecd_j==0&p_polity2>=6&p_polity2!=., fe first cluster(dyad)
{res}Warning - singleton groups detected.  58 observation(s) not used.
{txt}Warning - duplicate variables detected
Duplicates:{col 21}__000003
{res}
{txt}FIXED EFFECTS ESTIMATION
{hline 24}
Number of groups = {res}     2360{col 49}{txt}Obs per group: min{col 68}={col 70}{res}        2
{txt}{col 64}avg{col 68}={col 70}{res}     15.5
{txt}{col 64}max{col 68}={col 70}{res}       37

{txt}First-stage regressions
{hline 23}

First-stage regression of L.bit_ratf:

FIXED EFFECTS ESTIMATION
{hline 24}
Number of groups = {res}     2360{col 49}{txt}Obs per group: min{col 68}={col 70}{res}        2
{txt}{col 64}avg{col 68}={col 70}{res}     15.5
{txt}{col 64}max{col 68}={col 70}{res}       37

{txt}OLS estimation
{hline 14}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on dyad

Number of clusters (dyad) = {col 33}{res}  2360{txt}{col 55}Number of obs = {res}   36607
{txt}{col 55}F( 17,  2359) = {res}   28.25
{txt}{col 55}Prob > F      = {res}  0.0000
{txt}Total (centered) SS     = {res} 1787.974685{txt}{col 55}Centered R2   = {res}  0.1917
{txt}Total (uncentered) SS   = {res} 1787.974685{txt}{col 55}Uncentered R2 = {res}  0.1917
{txt}Residual SS             = {res} 1445.280562{txt}{col 55}Root MSE      = {res}   .2055

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  L.bit_ratf{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}dpi_yio {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0272435{col 26}{space 2} .0038563{col 37}{space 1}    7.06{col 46}{space 3}0.000{col 54}{space 4} .0196814{col 67}{space 3} .0348056
{txt}{space 12} {c |}
{space 3}p_polity2 {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0013015{col 26}{space 2} .0010462{col 37}{space 1}    1.24{col 46}{space 3}0.214{col 54}{space 4}-.0007501{col 67}{space 3}  .003353
{txt}{space 12} {c |}
{space 4}ln_gdppc {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0337802{col 26}{space 2} .0292211{col 37}{space 1}   -1.16{col 46}{space 3}0.248{col 54}{space 4}-.0910818{col 67}{space 3} .0235215
{txt}{space 12} {c |}
{space 3}wdi_gdpgr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0020875{col 26}{space 2}  .000428{col 37}{space 1}    4.88{col 46}{space 3}0.000{col 54}{space 4} .0012482{col 67}{space 3} .0029268
{txt}{space 12} {c |}
{space 3}wdi_fdiin {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0004155{col 26}{space 2} .0004097{col 37}{space 1}    1.01{col 46}{space 3}0.311{col 54}{space 4}-.0003879{col 67}{space 3} .0012189
{txt}{space 12} {c |}
{space 3}wdi_natrr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0002905{col 26}{space 2} .0006997{col 37}{space 1}   -0.42{col 46}{space 3}0.678{col 54}{space 4}-.0016626{col 67}{space 3} .0010815
{txt}{space 12} {c |}
{space 7}lnpop {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.3393926{col 26}{space 2} .0651597{col 37}{space 1}   -5.21{col 46}{space 3}0.000{col 54}{space 4}-.4671689{col 67}{space 3}-.2116163
{txt}{space 12} {c |}
{space 4}conflict {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0230937{col 26}{space 2} .0118035{col 37}{space 1}    1.96{col 46}{space 3}0.051{col 54}{space 4}-.0000526{col 67}{space 3} .0462399
{txt}{space 12} {c |}
{space 5}gdpgr_i {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0005092{col 26}{space 2} .0004171{col 37}{space 1}   -1.22{col 46}{space 3}0.222{col 54}{space 4}-.0013272{col 67}{space 3} .0003087
{txt}{space 12} {c |}
{space 9}pta {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0069962{col 26}{space 2} .0160411{col 37}{space 1}    0.44{col 46}{space 3}0.663{col 54}{space 4}  -.02446{col 67}{space 3} .0384523
{txt}{space 12} {c |}
{space 1}unsc_member {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}  -.02083{col 26}{space 2} .0098362{col 37}{space 1}   -2.12{col 46}{space 3}0.034{col 54}{space 4}-.0401184{col 67}{space 3}-.0015415
{txt}{space 12} {c |}
{space 8}ally {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .1034809{col 26}{space 2} .0796449{col 37}{space 1}    1.30{col 46}{space 3}0.194{col 54}{space 4}-.0527003{col 67}{space 3} .2596621
{txt}{space 12} {c |}
{space 5}coldwar {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}  .042974{col 26}{space 2} .0090619{col 37}{space 1}    4.74{col 46}{space 3}0.000{col 54}{space 4} .0252038{col 67}{space 3} .0607442
{txt}{space 12} {c |}
{space 10}yr {c |}{col 14}{res}{space 2}-.8959631{col 26}{space 2} .1466456{col 37}{space 1}   -6.11{col 46}{space 3}0.000{col 54}{space 4}-1.183531{col 67}{space 3}-.6083956
{txt}{space 8}yrsq {c |}{col 14}{res}{space 2} .0002255{col 26}{space 2} .0000365{col 37}{space 1}    6.17{col 46}{space 3}0.000{col 54}{space 4} .0001538{col 67}{space 3} .0002971
{txt}{space 12} {c |}
{space 5}lnt_bit {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .1662409{col 26}{space 2} .0171594{col 37}{space 1}    9.69{col 46}{space 3}0.000{col 54}{space 4} .1325918{col 67}{space 3}   .19989
{txt}{space 12} {c |}
{space 3}inter1_ex {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0039184{col 26}{space 2} .0005659{col 37}{space 1}   -6.92{col 46}{space 3}0.000{col 54}{space 4} -.005028{col 67}{space 3}-.0028087
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
Included instruments:{col 23}L.dpi_yio L.p_polity2 L.ln_gdppc L.wdi_gdpgr L.wdi_fdiin
{col 23}L.wdi_natrr L.lnpop L.conflict L.gdpgr_i L.pta
{col 23}L.unsc_member L.ally L.coldwar yr yrsq L.lnt_bit
{col 23}L.inter1_ex
{hline 78}
F test of excluded instruments:
  F(  2,  2359) = {res}   58.28
{txt}  Prob > F      = {res}  0.0000
{help ivreg2##apstats:Angrist-Pischke multivariate F test of excluded instruments:}
{txt}  F(  1,  2359) = {res}  105.09
{txt}  Prob > F      = {res}  0.0000

{txt}First-stage regression of L.inter1:

FIXED EFFECTS ESTIMATION
{hline 24}
Number of groups = {res}     2360{col 49}{txt}Obs per group: min{col 68}={col 70}{res}        2
{txt}{col 64}avg{col 68}={col 70}{res}     15.5
{txt}{col 64}max{col 68}={col 70}{res}       37

{txt}OLS estimation
{hline 14}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on dyad

Number of clusters (dyad) = {col 33}{res}  2360{txt}{col 55}Number of obs = {res}   36607
{txt}{col 55}F( 17,  2359) = {res}   30.15
{txt}{col 55}Prob > F      = {res}  0.0000
{txt}Total (centered) SS     = {res} 83639.88527{txt}{col 55}Centered R2   = {res}  0.2111
{txt}Total (uncentered) SS   = {res} 83639.88527{txt}{col 55}Uncentered R2 = {res}  0.2111
{txt}Residual SS             = {res} 65981.35124{txt}{col 55}Root MSE      = {res}   1.388

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    L.inter1{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}dpi_yio {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.4436887{col 26}{space 2} .0389305{col 37}{space 1}  -11.40{col 46}{space 3}0.000{col 54}{space 4}-.5200303{col 67}{space 3}-.3673472
{txt}{space 12} {c |}
{space 3}p_polity2 {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0207625{col 26}{space 2} .0096195{col 37}{space 1}   -2.16{col 46}{space 3}0.031{col 54}{space 4} -.039626{col 67}{space 3}-.0018989
{txt}{space 12} {c |}
{space 4}ln_gdppc {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0665686{col 26}{space 2} .1471467{col 37}{space 1}   -0.45{col 46}{space 3}0.651{col 54}{space 4}-.3551189{col 67}{space 3} .2219816
{txt}{space 12} {c |}
{space 3}wdi_gdpgr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0037059{col 26}{space 2} .0035303{col 37}{space 1}    1.05{col 46}{space 3}0.294{col 54}{space 4} -.003217{col 67}{space 3} .0106288
{txt}{space 12} {c |}
{space 3}wdi_fdiin {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0045062{col 26}{space 2}   .00266{col 37}{space 1}    1.69{col 46}{space 3}0.090{col 54}{space 4}  -.00071{col 67}{space 3} .0097224
{txt}{space 12} {c |}
{space 3}wdi_natrr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0045298{col 26}{space 2} .0033165{col 37}{space 1}   -1.37{col 46}{space 3}0.172{col 54}{space 4}-.0110333{col 67}{space 3} .0019737
{txt}{space 12} {c |}
{space 7}lnpop {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-1.395324{col 26}{space 2} .3214259{col 37}{space 1}   -4.34{col 46}{space 3}0.000{col 54}{space 4}-2.025631{col 67}{space 3}-.7650177
{txt}{space 12} {c |}
{space 4}conflict {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0845911{col 26}{space 2} .0575636{col 37}{space 1}    1.47{col 46}{space 3}0.142{col 54}{space 4}-.0282893{col 67}{space 3} .1974715
{txt}{space 12} {c |}
{space 5}gdpgr_i {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0066849{col 26}{space 2} .0029477{col 37}{space 1}   -2.27{col 46}{space 3}0.023{col 54}{space 4}-.0124651{col 67}{space 3}-.0009046
{txt}{space 12} {c |}
{space 9}pta {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} -.032834{col 26}{space 2} .0713343{col 37}{space 1}   -0.46{col 46}{space 3}0.645{col 54}{space 4}-.1727185{col 67}{space 3} .1070505
{txt}{space 12} {c |}
{space 1}unsc_member {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.2620001{col 26}{space 2} .0595413{col 37}{space 1}   -4.40{col 46}{space 3}0.000{col 54}{space 4}-.3787588{col 67}{space 3}-.1452413
{txt}{space 12} {c |}
{space 8}ally {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}  .518449{col 26}{space 2} .3606985{col 37}{space 1}    1.44{col 46}{space 3}0.151{col 54}{space 4}-.1888699{col 67}{space 3} 1.225768
{txt}{space 12} {c |}
{space 5}coldwar {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}  .152607{col 26}{space 2} .0449117{col 37}{space 1}    3.40{col 46}{space 3}0.001{col 54}{space 4} .0645364{col 67}{space 3} .2406775
{txt}{space 12} {c |}
{space 10}yr {c |}{col 14}{res}{space 2}-4.151105{col 26}{space 2} .8433827{col 37}{space 1}   -4.92{col 46}{space 3}0.000{col 54}{space 4}-5.804953{col 67}{space 3}-2.497257
{txt}{space 8}yrsq {c |}{col 14}{res}{space 2} .0010377{col 26}{space 2}   .00021{col 37}{space 1}    4.94{col 46}{space 3}0.000{col 54}{space 4} .0006259{col 67}{space 3} .0014496
{txt}{space 12} {c |}
{space 5}lnt_bit {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .4140503{col 26}{space 2} .0722106{col 37}{space 1}    5.73{col 46}{space 3}0.000{col 54}{space 4} .2724474{col 67}{space 3} .5556533
{txt}{space 12} {c |}
{space 3}inter1_ex {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0922638{col 26}{space 2} .0068903{col 37}{space 1}   13.39{col 46}{space 3}0.000{col 54}{space 4} .0787522{col 67}{space 3} .1057753
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
Included instruments:{col 23}L.dpi_yio L.p_polity2 L.ln_gdppc L.wdi_gdpgr L.wdi_fdiin
{col 23}L.wdi_natrr L.lnpop L.conflict L.gdpgr_i L.pta
{col 23}L.unsc_member L.ally L.coldwar yr yrsq L.lnt_bit
{col 23}L.inter1_ex
{hline 78}
F test of excluded instruments:
  F(  2,  2359) = {res}   92.66
{txt}  Prob > F      = {res}  0.0000
{help ivreg2##apstats:Angrist-Pischke multivariate F test of excluded instruments:}
{txt}  F(  1,  2359) = {res}  185.01
{txt}  Prob > F      = {res}  0.0000



{txt}Summary results for first-stage regressions
{hline 43}

{col 44}{help ivreg2##apstats:(Underid)}{col 65}{help ivreg2##apstats:(Weak id)}
Variable     |{col 16}{help ivreg2##apstats:F}({res}{col 17}  2{txt},{res}  2359{txt})  P-val{col 37}|{col 39}{help ivreg2##apstats:AP Chi-sq}({res}  1{txt}) P-val{col 60}|{col 62}{help ivreg2##apstats:AP F}({res}{col 67}  1{txt},{res}  2359{txt})
{res}L.bit_ratf  {col 14}{txt}|{col 18}{res}   58.28{col 28}  0.0000{col 37}{txt}|{col 42}{res}  105.18{col 51}  0.0000{col 60}{txt}|{col 65}{res}  105.09
L.inter1    {col 14}{txt}|{col 18}{res}   92.66{col 28}  0.0000{col 37}{txt}|{col 42}{res}  185.17{col 51}  0.0000{col 60}{txt}|{col 65}{res}  185.01

{txt}NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID test critical values for single endogenous regressor:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

{help ivreg2##idtest:Underidentification test}
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
{res}Kleibergen-Paap rk LM statistic{txt}{col 42}Chi-sq({res}1{txt})={res}82.72  {col 61}{txt}P-val={res}0.0000

{help ivreg2##widtest:Weak identification test}
{txt}Ho: equation is weakly identified
{res}Cragg-Donald Wald F statistic{col 65}  233.27
Kleibergen-Paap Wald rk F statistic{col 65}   44.41

{txt}Stock-Yogo weak ID test critical values for K1=2 and L1=2:
{res}{txt}{col 36}10% maximal IV size{res}{col 67}  7.03
{txt}{col 36}15% maximal IV size{res}{col 67}  4.58
{txt}{col 36}20% maximal IV size{res}{col 67}  3.95
{txt}{col 36}25% maximal IV size{res}{col 67}  3.63
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

{help ivreg2##wirobust:Weak-instrument-robust inference}
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
{res}Anderson-Rubin Wald test{txt}{col 36}F({res}2{txt},{res}2359{txt})={col 49}{res}  51.89{col 61}{txt}P-val={res}0.0000
Anderson-Rubin Wald test{txt}{col 36}Chi-sq({res}2{txt})={col 49}{res} 103.86{col 61}{txt}P-val={res}0.0000
Stock-Wright LM S statistic{txt}{col 36}Chi-sq({res}2{txt})={col 49}{res}  96.78{col 61}{txt}P-val={res}0.0000

{txt}NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  = {res}      2360
{txt}Number of observations               N  = {res}     36607
{txt}Number of regressors                 K  = {res}        17
{txt}Number of endogenous regressors      K1 = {res}         2
{txt}Number of instruments                L  = {res}        17
{txt}Number of excluded instruments       L1 = {res}         2

{txt}IV (2SLS) estimation
{hline 20}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on dyad

Number of clusters (dyad) = {col 33}{res}  2360{txt}{col 55}Number of obs = {res}   36607
{txt}{col 55}F( 17,  2359) = {res}   23.62
{txt}{col 55}Prob > F      = {res}  0.0000
{txt}Total (centered) SS     = {res} 634550.3202{txt}{col 55}Centered R2   = {res} -0.4453
{txt}Total (uncentered) SS   = {res} 634550.3202{txt}{col 55}Uncentered R2 = {res} -0.4453
{txt}Residual SS             = {res} 917116.8013{txt}{col 55}Root MSE      = {res}   5.175

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}bit_ratf {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} 14.88059{col 26}{space 2} 2.077915{col 37}{space 1}    7.16{col 46}{space 3}0.000{col 54}{space 4} 10.80796{col 67}{space 3} 18.95323
{txt}{space 12} {c |}
{space 6}inter1 {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .4090542{col 26}{space 2} .1424336{col 37}{space 1}    2.87{col 46}{space 3}0.004{col 54}{space 4} .1298895{col 67}{space 3} .6882189
{txt}{space 12} {c |}
{space 5}dpi_yio {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0642293{col 26}{space 2}  .025844{col 37}{space 1}   -2.49{col 46}{space 3}0.013{col 54}{space 4}-.1148825{col 67}{space 3} -.013576
{txt}{space 12} {c |}
{space 3}p_polity2 {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0645436{col 26}{space 2} .0258846{col 37}{space 1}    2.49{col 46}{space 3}0.013{col 54}{space 4} .0138106{col 67}{space 3} .1152765
{txt}{space 12} {c |}
{space 4}ln_gdppc {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-2.173859{col 26}{space 2}  .652616{col 37}{space 1}   -3.33{col 46}{space 3}0.001{col 54}{space 4}-3.452962{col 67}{space 3}-.8947546
{txt}{space 12} {c |}
{space 3}wdi_gdpgr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0292891{col 26}{space 2} .0108479{col 37}{space 1}    2.70{col 46}{space 3}0.007{col 54}{space 4} .0080276{col 67}{space 3} .0505506
{txt}{space 12} {c |}
{space 3}wdi_fdiin {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0262166{col 26}{space 2} .0103014{col 37}{space 1}   -2.54{col 46}{space 3}0.011{col 54}{space 4}-.0464069{col 67}{space 3}-.0060263
{txt}{space 12} {c |}
{space 3}wdi_natrr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}  .028128{col 26}{space 2}  .013823{col 37}{space 1}    2.03{col 46}{space 3}0.042{col 54}{space 4} .0010354{col 67}{space 3} .0552206
{txt}{space 12} {c |}
{space 7}lnpop {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} 9.615801{col 26}{space 2} 1.496727{col 37}{space 1}    6.42{col 46}{space 3}0.000{col 54}{space 4} 6.682269{col 67}{space 3} 12.54933
{txt}{space 12} {c |}
{space 4}conflict {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.2295322{col 26}{space 2} .2639182{col 37}{space 1}   -0.87{col 46}{space 3}0.384{col 54}{space 4}-.7468024{col 67}{space 3}  .287738
{txt}{space 12} {c |}
{space 5}gdpgr_i {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0528781{col 26}{space 2} .0099843{col 37}{space 1}   -5.30{col 46}{space 3}0.000{col 54}{space 4}-.0724471{col 67}{space 3}-.0333092
{txt}{space 12} {c |}
{space 9}pta {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.5856045{col 26}{space 2} .3156658{col 37}{space 1}   -1.86{col 46}{space 3}0.064{col 54}{space 4}-1.204298{col 67}{space 3} .0330891
{txt}{space 12} {c |}
{space 1}unsc_member {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .6075836{col 26}{space 2} .2693513{col 37}{space 1}    2.26{col 46}{space 3}0.024{col 54}{space 4} .0796647{col 67}{space 3} 1.135502
{txt}{space 12} {c |}
{space 8}ally {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} -4.20623{col 26}{space 2} 1.181573{col 37}{space 1}   -3.56{col 46}{space 3}0.000{col 54}{space 4}-6.522071{col 67}{space 3}-1.890388
{txt}{space 12} {c |}
{space 5}coldwar {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-1.061467{col 26}{space 2} .2684808{col 37}{space 1}   -3.95{col 46}{space 3}0.000{col 54}{space 4} -1.58768{col 67}{space 3}-.5352544
{txt}{space 12} {c |}
{space 10}yr {c |}{col 14}{res}{space 2} 11.36753{col 26}{space 2} 3.392392{col 37}{space 1}    3.35{col 46}{space 3}0.001{col 54}{space 4} 4.718568{col 67}{space 3}  18.0165
{txt}{space 8}yrsq {c |}{col 14}{res}{space 2}-.0028843{col 26}{space 2}  .000849{col 37}{space 1}   -3.40{col 46}{space 3}0.001{col 54}{space 4}-.0045482{col 67}{space 3}-.0012203
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{help ivreg2##idtest:Underidentification test} (Kleibergen-Paap rk LM statistic):{res}{col 71}  82.715
{txt}{col 52}Chi-sq({res}1{txt}) P-val =  {res}{col 73}0.0000
{txt}{hline 78}
{help ivreg2##widtest:Weak identification test} (Cragg-Donald Wald F statistic):{res}{col 71} 233.275
{txt}                         (Kleibergen-Paap rk Wald F statistic):{res}{col 71}  44.412
{txt}Stock-Yogo weak ID test critical values:{res}{txt}{col 42}10% maximal IV size{res}{col 73}  7.03
{txt}{col 42}15% maximal IV size{res}{col 73}  4.58
{txt}{col 42}20% maximal IV size{res}{col 73}  3.95
{txt}{col 42}25% maximal IV size{res}{col 73}  3.63
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
{hline 78}
{help ivreg2##overidtests:Hansen J statistic} (overidentification test of all instruments):{res}{col 71}   0.000
{txt}{col 50}(equation exactly identified)
{hline 78}
Instrumented:{col 23}L.bit_ratf L.inter1
Included instruments:{col 23}L.dpi_yio L.p_polity2 L.ln_gdppc L.wdi_gdpgr L.wdi_fdiin
{col 23}L.wdi_natrr L.lnpop L.conflict L.gdpgr_i L.pta
{col 23}L.unsc_member L.ally L.coldwar yr yrsq
Excluded instruments:{col 23}L.lnt_bit L.inter1_ex
Duplicates:{col 23}L.dpi_yio
{hline 78}

{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) replace addtext(Time trend, Y, Dyad FE, Y) noni nor2 ctitle("Demoracies") title(Excluding the US)
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ///non-democratic hosts
> xtivreg2 lnaid l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* ///
> (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if cowcode!=2&oecd_i==1&oecd_j==0&p_polity2<6&p_polity2!=., fe first cluster(dyad)
{res}Warning - singleton groups detected.  58 observation(s) not used.
{txt}Warning - duplicate variables detected
Duplicates:{col 21}__000003
{res}
{txt}FIXED EFFECTS ESTIMATION
{hline 24}
Number of groups = {res}     3000{col 49}{txt}Obs per group: min{col 68}={col 70}{res}        2
{txt}{col 64}avg{col 68}={col 70}{res}     17.8
{txt}{col 64}max{col 68}={col 70}{res}       37

{txt}First-stage regressions
{hline 23}

First-stage regression of L.bit_ratf:

FIXED EFFECTS ESTIMATION
{hline 24}
Number of groups = {res}     3000{col 49}{txt}Obs per group: min{col 68}={col 70}{res}        2
{txt}{col 64}avg{col 68}={col 70}{res}     17.8
{txt}{col 64}max{col 68}={col 70}{res}       37

{txt}OLS estimation
{hline 14}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on dyad

Number of clusters (dyad) = {col 33}{res}  3000{txt}{col 55}Number of obs = {res}   53518
{txt}{col 55}F( 17,  2999) = {res}   26.33
{txt}{col 55}Prob > F      = {res}  0.0000
{txt}Total (centered) SS     = {res} 1855.832838{txt}{col 55}Centered R2   = {res}  0.1379
{txt}Total (uncentered) SS   = {res} 1855.832838{txt}{col 55}Uncentered R2 = {res}  0.1379
{txt}Residual SS             = {res} 1599.874699{txt}{col 55}Root MSE      = {res}    .178

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  L.bit_ratf{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}dpi_yio {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0026125{col 26}{space 2} .0023687{col 37}{space 1}   -1.10{col 46}{space 3}0.270{col 54}{space 4}-.0072571{col 67}{space 3}  .002032
{txt}{space 12} {c |}
{space 3}p_polity2 {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0031173{col 26}{space 2} .0007678{col 37}{space 1}   -4.06{col 46}{space 3}0.000{col 54}{space 4}-.0046227{col 67}{space 3}-.0016119
{txt}{space 12} {c |}
{space 4}ln_gdppc {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0909663{col 26}{space 2}  .012057{col 37}{space 1}    7.54{col 46}{space 3}0.000{col 54}{space 4} .0673256{col 67}{space 3} .1146071
{txt}{space 12} {c |}
{space 3}wdi_gdpgr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0002386{col 26}{space 2} .0001421{col 37}{space 1}   -1.68{col 46}{space 3}0.093{col 54}{space 4}-.0005172{col 67}{space 3}   .00004
{txt}{space 12} {c |}
{space 3}wdi_fdiin {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0001902{col 26}{space 2} .0001107{col 37}{space 1}   -1.72{col 46}{space 3}0.086{col 54}{space 4}-.0004072{col 67}{space 3} .0000268
{txt}{space 12} {c |}
{space 3}wdi_natrr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} -.000463{col 26}{space 2} .0002555{col 37}{space 1}   -1.81{col 46}{space 3}0.070{col 54}{space 4}-.0009639{col 67}{space 3}  .000038
{txt}{space 12} {c |}
{space 7}lnpop {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0338652{col 26}{space 2} .0403841{col 37}{space 1}   -0.84{col 46}{space 3}0.402{col 54}{space 4}-.1130486{col 67}{space 3} .0453181
{txt}{space 12} {c |}
{space 4}conflict {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0070293{col 26}{space 2} .0063525{col 37}{space 1}    1.11{col 46}{space 3}0.269{col 54}{space 4}-.0054263{col 67}{space 3} .0194849
{txt}{space 12} {c |}
{space 5}gdpgr_i {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}  .000605{col 26}{space 2} .0002979{col 37}{space 1}    2.03{col 46}{space 3}0.042{col 54}{space 4} .0000209{col 67}{space 3} .0011892
{txt}{space 12} {c |}
{space 9}pta {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0161248{col 26}{space 2} .0122486{col 37}{space 1}    1.32{col 46}{space 3}0.188{col 54}{space 4}-.0078916{col 67}{space 3} .0401413
{txt}{space 12} {c |}
{space 1}unsc_member {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0157924{col 26}{space 2} .0062234{col 37}{space 1}    2.54{col 46}{space 3}0.011{col 54}{space 4} .0035899{col 67}{space 3} .0279949
{txt}{space 12} {c |}
{space 8}ally {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0657146{col 26}{space 2} .0717108{col 37}{space 1}   -0.92{col 46}{space 3}0.360{col 54}{space 4} -.206322{col 67}{space 3} .0748927
{txt}{space 12} {c |}
{space 5}coldwar {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0020802{col 26}{space 2} .0045689{col 37}{space 1}    0.46{col 46}{space 3}0.649{col 54}{space 4}-.0068782{col 67}{space 3} .0110386
{txt}{space 12} {c |}
{space 10}yr {c |}{col 14}{res}{space 2}-.4698189{col 26}{space 2} .0879476{col 37}{space 1}   -5.34{col 46}{space 3}0.000{col 54}{space 4}-.6422627{col 67}{space 3}-.2973752
{txt}{space 8}yrsq {c |}{col 14}{res}{space 2} .0001189{col 26}{space 2}  .000022{col 37}{space 1}    5.41{col 46}{space 3}0.000{col 54}{space 4} .0000758{col 67}{space 3}  .000162
{txt}{space 12} {c |}
{space 5}lnt_bit {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0329402{col 26}{space 2} .0113208{col 37}{space 1}    2.91{col 46}{space 3}0.004{col 54}{space 4} .0107429{col 67}{space 3} .0551374
{txt}{space 12} {c |}
{space 3}inter1_ex {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0002558{col 26}{space 2} .0003541{col 37}{space 1}    0.72{col 46}{space 3}0.470{col 54}{space 4}-.0004385{col 67}{space 3}   .00095
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
Included instruments:{col 23}L.dpi_yio L.p_polity2 L.ln_gdppc L.wdi_gdpgr L.wdi_fdiin
{col 23}L.wdi_natrr L.lnpop L.conflict L.gdpgr_i L.pta
{col 23}L.unsc_member L.ally L.coldwar yr yrsq L.lnt_bit
{col 23}L.inter1_ex
{hline 78}
F test of excluded instruments:
  F(  2,  2999) = {res}    5.55
{txt}  Prob > F      = {res}  0.0039
{help ivreg2##apstats:Angrist-Pischke multivariate F test of excluded instruments:}
{txt}  F(  1,  2999) = {res}   10.08
{txt}  Prob > F      = {res}  0.0015

{txt}First-stage regression of L.inter1:

FIXED EFFECTS ESTIMATION
{hline 24}
Number of groups = {res}     3000{col 49}{txt}Obs per group: min{col 68}={col 70}{res}        2
{txt}{col 64}avg{col 68}={col 70}{res}     17.8
{txt}{col 64}max{col 68}={col 70}{res}       37

{txt}OLS estimation
{hline 14}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on dyad

Number of clusters (dyad) = {col 33}{res}  3000{txt}{col 55}Number of obs = {res}   53518
{txt}{col 55}F( 17,  2999) = {res}   21.81
{txt}{col 55}Prob > F      = {res}  0.0000
{txt}Total (centered) SS     = {res} 621565.6145{txt}{col 55}Centered R2   = {res}  0.1695
{txt}Total (uncentered) SS   = {res} 621565.6145{txt}{col 55}Uncentered R2 = {res}  0.1695
{txt}Residual SS             = {res} 516225.9241{txt}{col 55}Root MSE      = {res}   3.197

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    L.inter1{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}dpi_yio {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.3581288{col 26}{space 2} .0593105{col 37}{space 1}   -6.04{col 46}{space 3}0.000{col 54}{space 4}-.4744222{col 67}{space 3}-.2418354
{txt}{space 12} {c |}
{space 3}p_polity2 {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0149395{col 26}{space 2} .0092845{col 37}{space 1}   -1.61{col 46}{space 3}0.108{col 54}{space 4}-.0331441{col 67}{space 3} .0032651
{txt}{space 12} {c |}
{space 4}ln_gdppc {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .4366786{col 26}{space 2} .1955075{col 37}{space 1}    2.23{col 46}{space 3}0.026{col 54}{space 4} .0533362{col 67}{space 3}  .820021
{txt}{space 12} {c |}
{space 3}wdi_gdpgr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0033049{col 26}{space 2} .0025141{col 37}{space 1}    1.31{col 46}{space 3}0.189{col 54}{space 4}-.0016247{col 67}{space 3} .0082345
{txt}{space 12} {c |}
{space 3}wdi_fdiin {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0009093{col 26}{space 2} .0020367{col 37}{space 1}   -0.45{col 46}{space 3}0.655{col 54}{space 4}-.0049029{col 67}{space 3} .0030842
{txt}{space 12} {c |}
{space 3}wdi_natrr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0073882{col 26}{space 2} .0041994{col 37}{space 1}   -1.76{col 46}{space 3}0.079{col 54}{space 4}-.0156221{col 67}{space 3} .0008457
{txt}{space 12} {c |}
{space 7}lnpop {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-1.932842{col 26}{space 2} .5176441{col 37}{space 1}   -3.73{col 46}{space 3}0.000{col 54}{space 4}-2.947816{col 67}{space 3}-.9178686
{txt}{space 12} {c |}
{space 4}conflict {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0368791{col 26}{space 2} .0850852{col 37}{space 1}   -0.43{col 46}{space 3}0.665{col 54}{space 4}-.2037102{col 67}{space 3} .1299521
{txt}{space 12} {c |}
{space 5}gdpgr_i {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0035455{col 26}{space 2} .0053631{col 37}{space 1}    0.66{col 46}{space 3}0.509{col 54}{space 4}-.0069702{col 67}{space 3} .0140612
{txt}{space 12} {c |}
{space 9}pta {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0112225{col 26}{space 2} .2136578{col 37}{space 1}    0.05{col 46}{space 3}0.958{col 54}{space 4}-.4077082{col 67}{space 3} .4301532
{txt}{space 12} {c |}
{space 1}unsc_member {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .1383906{col 26}{space 2} .1448361{col 37}{space 1}    0.96{col 46}{space 3}0.339{col 54}{space 4}-.1455975{col 67}{space 3} .4223786
{txt}{space 12} {c |}
{space 8}ally {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .1548317{col 26}{space 2} 1.162842{col 37}{space 1}    0.13{col 46}{space 3}0.894{col 54}{space 4}-2.125217{col 67}{space 3}  2.43488
{txt}{space 12} {c |}
{space 5}coldwar {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .1654169{col 26}{space 2} .0804543{col 37}{space 1}    2.06{col 46}{space 3}0.040{col 54}{space 4} .0076657{col 67}{space 3} .3231681
{txt}{space 12} {c |}
{space 10}yr {c |}{col 14}{res}{space 2}-5.790823{col 26}{space 2} 1.419966{col 37}{space 1}   -4.08{col 46}{space 3}0.000{col 54}{space 4}-8.575028{col 67}{space 3}-3.006617
{txt}{space 8}yrsq {c |}{col 14}{res}{space 2} .0014787{col 26}{space 2} .0003564{col 37}{space 1}    4.15{col 46}{space 3}0.000{col 54}{space 4} .0007799{col 67}{space 3} .0021776
{txt}{space 12} {c |}
{space 5}lnt_bit {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.4904128{col 26}{space 2}  .174543{col 37}{space 1}   -2.81{col 46}{space 3}0.005{col 54}{space 4}-.8326489{col 67}{space 3}-.1481767
{txt}{space 12} {c |}
{space 3}inter1_ex {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0767738{col 26}{space 2} .0095582{col 37}{space 1}    8.03{col 46}{space 3}0.000{col 54}{space 4} .0580325{col 67}{space 3} .0955151
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
Included instruments:{col 23}L.dpi_yio L.p_polity2 L.ln_gdppc L.wdi_gdpgr L.wdi_fdiin
{col 23}L.wdi_natrr L.lnpop L.conflict L.gdpgr_i L.pta
{col 23}L.unsc_member L.ally L.coldwar yr yrsq L.lnt_bit
{col 23}L.inter1_ex
{hline 78}
F test of excluded instruments:
  F(  2,  2999) = {res}   33.68
{txt}  Prob > F      = {res}  0.0000
{help ivreg2##apstats:Angrist-Pischke multivariate F test of excluded instruments:}
{txt}  F(  1,  2999) = {res}   67.03
{txt}  Prob > F      = {res}  0.0000



{txt}Summary results for first-stage regressions
{hline 43}

{col 44}{help ivreg2##apstats:(Underid)}{col 65}{help ivreg2##apstats:(Weak id)}
Variable     |{col 16}{help ivreg2##apstats:F}({res}{col 17}  2{txt},{res}  2999{txt})  P-val{col 37}|{col 39}{help ivreg2##apstats:AP Chi-sq}({res}  1{txt}) P-val{col 60}|{col 62}{help ivreg2##apstats:AP F}({res}{col 67}  1{txt},{res}  2999{txt})
{res}L.bit_ratf  {col 14}{txt}|{col 18}{res}    5.55{col 28}  0.0039{col 37}{txt}|{col 42}{res}   10.09{col 51}  0.0015{col 60}{txt}|{col 65}{res}   10.08
L.inter1    {col 14}{txt}|{col 18}{res}   33.68{col 28}  0.0000{col 37}{txt}|{col 42}{res}   67.07{col 51}  0.0000{col 60}{txt}|{col 65}{res}   67.03

{txt}NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID test critical values for single endogenous regressor:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

{help ivreg2##idtest:Underidentification test}
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
{res}Kleibergen-Paap rk LM statistic{txt}{col 42}Chi-sq({res}1{txt})={res}10.84  {col 61}{txt}P-val={res}0.0010

{help ivreg2##widtest:Weak identification test}
{txt}Ho: equation is weakly identified
{res}Cragg-Donald Wald F statistic{col 65}   29.71
Kleibergen-Paap Wald rk F statistic{col 65}    5.45

{txt}Stock-Yogo weak ID test critical values for K1=2 and L1=2:
{res}{txt}{col 36}10% maximal IV size{res}{col 67}  7.03
{txt}{col 36}15% maximal IV size{res}{col 67}  4.58
{txt}{col 36}20% maximal IV size{res}{col 67}  3.95
{txt}{col 36}25% maximal IV size{res}{col 67}  3.63
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

{help ivreg2##wirobust:Weak-instrument-robust inference}
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
{res}Anderson-Rubin Wald test{txt}{col 36}F({res}2{txt},{res}2999{txt})={col 49}{res}  33.02{col 61}{txt}P-val={res}0.0000
Anderson-Rubin Wald test{txt}{col 36}Chi-sq({res}2{txt})={col 49}{res}  66.08{col 61}{txt}P-val={res}0.0000
Stock-Wright LM S statistic{txt}{col 36}Chi-sq({res}2{txt})={col 49}{res}  63.72{col 61}{txt}P-val={res}0.0000

{txt}NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  = {res}      3000
{txt}Number of observations               N  = {res}     53518
{txt}Number of regressors                 K  = {res}        17
{txt}Number of endogenous regressors      K1 = {res}         2
{txt}Number of instruments                L  = {res}        17
{txt}Number of excluded instruments       L1 = {res}         2

{txt}IV (2SLS) estimation
{hline 20}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on dyad

Number of clusters (dyad) = {col 33}{res}  3000{txt}{col 55}Number of obs = {res}   53518
{txt}{col 55}F( 17,  2999) = {res}   12.25
{txt}{col 55}Prob > F      = {res}  0.0000
{txt}Total (centered) SS     = {res} 1025429.052{txt}{col 55}Centered R2   = {res} -2.7723
{txt}Total (uncentered) SS   = {res} 1025429.052{txt}{col 55}Uncentered R2 = {res} -2.7723
{txt}Residual SS             = {res} 3868212.203{txt}{col 55}Root MSE      = {res}    8.75

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}bit_ratf {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} 46.18219{col 26}{space 2} 14.57455{col 37}{space 1}    3.17{col 46}{space 3}0.002{col 54}{space 4}  17.6166{col 67}{space 3} 74.74777
{txt}{space 12} {c |}
{space 6}inter1 {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.2022048{col 26}{space 2} .2112767{col 37}{space 1}   -0.96{col 46}{space 3}0.339{col 54}{space 4}-.6162995{col 67}{space 3} .2118899
{txt}{space 12} {c |}
{space 5}dpi_yio {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0678565{col 26}{space 2} .0420646{col 37}{space 1}    1.61{col 46}{space 3}0.107{col 54}{space 4}-.0145886{col 67}{space 3} .1503016
{txt}{space 12} {c |}
{space 3}p_polity2 {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .1817442{col 26}{space 2}  .046835{col 37}{space 1}    3.88{col 46}{space 3}0.000{col 54}{space 4} .0899493{col 67}{space 3} .2735392
{txt}{space 12} {c |}
{space 4}ln_gdppc {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-3.960198{col 26}{space 2} 1.276214{col 37}{space 1}   -3.10{col 46}{space 3}0.002{col 54}{space 4}-6.461532{col 67}{space 3}-1.458865
{txt}{space 12} {c |}
{space 3}wdi_gdpgr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0197159{col 26}{space 2} .0073756{col 37}{space 1}    2.67{col 46}{space 3}0.008{col 54}{space 4}   .00526{col 67}{space 3} .0341718
{txt}{space 12} {c |}
{space 3}wdi_fdiin {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0062832{col 26}{space 2}  .006408{col 37}{space 1}    0.98{col 46}{space 3}0.327{col 54}{space 4}-.0062763{col 67}{space 3} .0188427
{txt}{space 12} {c |}
{space 3}wdi_natrr {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} .0307343{col 26}{space 2}  .011902{col 37}{space 1}    2.58{col 46}{space 3}0.010{col 54}{space 4} .0074069{col 67}{space 3} .0540617
{txt}{space 12} {c |}
{space 7}lnpop {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-1.389043{col 26}{space 2}  1.92373{col 37}{space 1}   -0.72{col 46}{space 3}0.470{col 54}{space 4}-5.159485{col 67}{space 3} 2.381399
{txt}{space 12} {c |}
{space 4}conflict {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.3155481{col 26}{space 2}  .305388{col 37}{space 1}   -1.03{col 46}{space 3}0.301{col 54}{space 4}-.9140977{col 67}{space 3} .2830014
{txt}{space 12} {c |}
{space 5}gdpgr_i {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.0447104{col 26}{space 2}  .016721{col 37}{space 1}   -2.67{col 46}{space 3}0.007{col 54}{space 4} -.077483{col 67}{space 3}-.0119378
{txt}{space 12} {c |}
{space 9}pta {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}  .569772{col 26}{space 2} .6152808{col 37}{space 1}    0.93{col 46}{space 3}0.354{col 54}{space 4}-.6361563{col 67}{space 3}   1.7757
{txt}{space 12} {c |}
{space 1}unsc_member {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.8190406{col 26}{space 2} .3809446{col 37}{space 1}   -2.15{col 46}{space 3}0.032{col 54}{space 4}-1.565678{col 67}{space 3}-.0724029
{txt}{space 12} {c |}
{space 8}ally {c |}
{space 9}L1. {c |}{col 14}{res}{space 2} 4.182756{col 26}{space 2} 3.466124{col 37}{space 1}    1.21{col 46}{space 3}0.228{col 54}{space 4}-2.610722{col 67}{space 3} 10.97623
{txt}{space 12} {c |}
{space 5}coldwar {c |}
{space 9}L1. {c |}{col 14}{res}{space 2}-.2173312{col 26}{space 2} .2381824{col 37}{space 1}   -0.91{col 46}{space 3}0.362{col 54}{space 4}-.6841601{col 67}{space 3} .2494977
{txt}{space 12} {c |}
{space 10}yr {c |}{col 14}{res}{space 2} 24.38968{col 26}{space 2} 7.295236{col 37}{space 1}    3.34{col 46}{space 3}0.001{col 54}{space 4} 10.09128{col 67}{space 3} 38.68808
{txt}{space 8}yrsq {c |}{col 14}{res}{space 2}-.0061384{col 26}{space 2} .0018497{col 37}{space 1}   -3.32{col 46}{space 3}0.001{col 54}{space 4}-.0097638{col 67}{space 3} -.002513
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{help ivreg2##idtest:Underidentification test} (Kleibergen-Paap rk LM statistic):{res}{col 71}  10.836
{txt}{col 52}Chi-sq({res}1{txt}) P-val =  {res}{col 73}0.0010
{txt}{hline 78}
{help ivreg2##widtest:Weak identification test} (Cragg-Donald Wald F statistic):{res}{col 71}  29.708
{txt}                         (Kleibergen-Paap rk Wald F statistic):{res}{col 71}   5.450
{txt}Stock-Yogo weak ID test critical values:{res}{txt}{col 42}10% maximal IV size{res}{col 73}  7.03
{txt}{col 42}15% maximal IV size{res}{col 73}  4.58
{txt}{col 42}20% maximal IV size{res}{col 73}  3.95
{txt}{col 42}25% maximal IV size{res}{col 73}  3.63
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
{hline 78}
{help ivreg2##overidtests:Hansen J statistic} (overidentification test of all instruments):{res}{col 71}   0.000
{txt}{col 50}(equation exactly identified)
{hline 78}
Instrumented:{col 23}L.bit_ratf L.inter1
Included instruments:{col 23}L.dpi_yio L.p_polity2 L.ln_gdppc L.wdi_gdpgr L.wdi_fdiin
{col 23}L.wdi_natrr L.lnpop L.conflict L.gdpgr_i L.pta
{col 23}L.unsc_member L.ally L.coldwar yr yrsq
Excluded instruments:{col 23}L.lnt_bit L.inter1_ex
Duplicates:{col 23}L.dpi_yio
{hline 78}

{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext(Time trend, Y, Dyad FE, Y) noni nor2 ctitle("Non-Democracies")
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. 
. ***isds clause only
. //mkdir C:/results
. //cd C:/results
. 
. use fpa-aid_bits_final,clear
{txt}
{com}. 
. set more off
{txt}
{com}. sort dyad year
{txt}
{com}. 
. //table a35
. teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (bit_isds lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 4.749e-16}  
Iteration 1:{space 2}EE criterion = {res: 2.308e-25}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    97,289
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 4}bit_isds {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 4.258411{col 26}{space 2} .1718285{col 37}{space 1}   24.78{col 46}{space 3}0.000{col 54}{space 4} 3.921634{col 67}{space 3} 4.595189
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 4}bit_isds {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.452222{col 26}{space 2} .0258566{col 37}{space 1}  210.86{col 46}{space 3}0.000{col 54}{space 4} 5.401544{col 67}{space 3}   5.5029
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid1, label word dec(3) e(n1 n0) replace addtext() noni nor2 ctitle("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid1.rtf"'"':bits_aid1.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid1.txt", label"':seeout}

{com}. 
. 
. //table a36: democracies
. use fpa-aid_bits_final,clear
{txt}
{com}. set more off
{txt}
{com}. sort dyad year
{txt}
{com}. 
. //democracies
. ///short time horizon
> 
. teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (bit_isds lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio<4&dpi_yio!=.&p_polity2>=6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 3.525e-16}  
Iteration 1:{space 2}EE criterion = {res: 5.640e-22}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    20,480
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 4}bit_isds {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.487439{col 26}{space 2} .2694127{col 37}{space 1}   12.94{col 46}{space 3}0.000{col 54}{space 4}   2.9594{col 67}{space 3} 4.015478
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 4}bit_isds {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.800925{col 26}{space 2} .0586915{col 37}{space 1}   98.84{col 46}{space 3}0.000{col 54}{space 4} 5.685892{col 67}{space 3} 5.915959
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid2, label word dec(3) e(n1 n0) replace ctitle(Democracy short) noni nor2 sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid2.rtf"'"':bits_aid2.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid2.txt", label"':seeout}

{com}. 
. ///long time horizon
> 
. teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (bit_isds lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio>=4&dpi_yio!=.&p_polity2>=6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 5.090e-17}  
Iteration 1:{space 2}EE criterion = {res: 1.117e-22}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    17,089
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 4}bit_isds {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.304255{col 26}{space 2} .5307201{col 37}{space 1}    6.23{col 46}{space 3}0.000{col 54}{space 4} 2.264063{col 67}{space 3} 4.344447
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 4}bit_isds {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 6.046091{col 26}{space 2} .0637784{col 37}{space 1}   94.80{col 46}{space 3}0.000{col 54}{space 4} 5.921087{col 67}{space 3} 6.171094
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid2, label word dec(3) e(n1 n0) append ctitle(Democracy long) noni nor2 cttop("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid2.rtf"'"':bits_aid2.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid2.txt", label"':seeout}

{com}. 
. //table a37: non-democracies
. ///short time horizon
> teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (bit_isds lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio<10&dpi_yio!=.&p_polity2<6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 1.289e-21}  
Iteration 1:{space 2}EE criterion = {res: 4.913e-31}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    32,960
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 4}bit_isds {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 4.558655{col 26}{space 2} .3852648{col 37}{space 1}   11.83{col 46}{space 3}0.000{col 54}{space 4}  3.80355{col 67}{space 3}  5.31376
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 4}bit_isds {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.389302{col 26}{space 2} .0433378{col 37}{space 1}  124.36{col 46}{space 3}0.000{col 54}{space 4} 5.304361{col 67}{space 3} 5.474242
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid3, label word dec(3) e(n1 n0) replace ctitle(Non-democracy short) noni nor2 sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid3.rtf"'"':bits_aid3.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid3.txt", label"':seeout}

{com}. 
. ///long time horizon
> teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (bit_isds lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio>10&dpi_yio!=.&p_polity2<6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 4.228e-18}  
Iteration 1:{space 2}EE criterion = {res: 6.923e-29}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    20,625
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 4}bit_isds {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2}  3.95839{col 26}{space 2} .4241255{col 37}{space 1}    9.33{col 46}{space 3}0.000{col 54}{space 4} 3.127119{col 67}{space 3} 4.789661
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 4}bit_isds {c |}
{space 10}0  {c |}{col 14}{res}{space 2}  5.21998{col 26}{space 2} .0548564{col 37}{space 1}   95.16{col 46}{space 3}0.000{col 54}{space 4} 5.112464{col 67}{space 3} 5.327497
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid3, label word dec(3) e(n1 n0) append ctitle(Non-democracy long) noni nor2 cttop("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid3.rtf"'"':bits_aid3.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid3.txt", label"':seeout}

{com}. 
. ***ideal points
. 
. use fpa-aid_bits_final,clear
{txt}
{com}. 
. //table a38
. 
. teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 1.167e-22}  
Iteration 1:{space 2}EE criterion = {res: 3.137e-31}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    98,160
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.902205{col 26}{space 2}  .121457{col 37}{space 1}   32.13{col 46}{space 3}0.000{col 54}{space 4} 3.664154{col 67}{space 3} 4.140256
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.341707{col 26}{space 2} .0263935{col 37}{space 1}  202.39{col 46}{space 3}0.000{col 54}{space 4} 5.289976{col 67}{space 3} 5.393437
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid4, label word dec(3) e(n1 n0) replace addtext() noni nor2 ctitle("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid4.rtf"'"':bits_aid4.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid4.txt", label"':seeout}

{com}. 
. 
. //table a39: democracies
. ///short time horizon
> 
. teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lidis  lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio<4&dpi_yio!=.&p_polity2>=6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 1.897e-16}  
Iteration 1:{space 2}EE criterion = {res: 1.923e-25}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    20,228
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.191627{col 26}{space 2}  .317676{col 37}{space 1}   10.05{col 46}{space 3}0.000{col 54}{space 4} 2.568994{col 67}{space 3} 3.814261
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.805944{col 26}{space 2} .0611882{col 37}{space 1}   94.89{col 46}{space 3}0.000{col 54}{space 4} 5.686018{col 67}{space 3} 5.925871
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid5, label word dec(3) e(n1 n0) replace ctitle(Democracy short) noni nor2 sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid5.rtf"'"':bits_aid5.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid5.txt", label"':seeout}

{com}. 
. ///long time horizon
> 
. teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lidis  lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio>=4&dpi_yio!=.&p_polity2>=6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 1.293e-15}  
Iteration 1:{space 2}EE criterion = {res: 1.996e-20}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    16,861
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.067844{col 26}{space 2} .4775998{col 37}{space 1}    6.42{col 46}{space 3}0.000{col 54}{space 4} 2.131766{col 67}{space 3} 4.003922
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 6.009719{col 26}{space 2} .0657059{col 37}{space 1}   91.46{col 46}{space 3}0.000{col 54}{space 4} 5.880938{col 67}{space 3} 6.138501
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid5, label word dec(3) e(n1 n0) append ctitle(Democracy long) noni nor2 cttop("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid5.rtf"'"':bits_aid5.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid5.txt", label"':seeout}

{com}. 
. //talbe a40: non-democracies
. ///short time horizon
> teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lidis  lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio<10&dpi_yio!=.&p_polity2<6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 6.054e-19}  
Iteration 1:{space 2}EE criterion = {res: 1.225e-30}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    31,324
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2}  3.81613{col 26}{space 2} .5086703{col 37}{space 1}    7.50{col 46}{space 3}0.000{col 54}{space 4} 2.819154{col 67}{space 3} 4.813105
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2}  5.28062{col 26}{space 2}  .045822{col 37}{space 1}  115.24{col 46}{space 3}0.000{col 54}{space 4} 5.190811{col 67}{space 3}  5.37043
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid6, label word dec(3) e(n1 n0) replace ctitle(Non-democracy short) noni nor2 sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid6.rtf"'"':bits_aid6.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid6.txt", label"':seeout}

{com}. 
. ///long time horizon
> 
. teffects aipw (lnaid lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lidis  lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio>10&dpi_yio!=.&p_polity2<6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 5.260e-22}  
Iteration 1:{space 2}EE criterion = {res: 8.039e-31}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    19,985
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       lnaid{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.010043{col 26}{space 2} .2755044{col 37}{space 1}   10.93{col 46}{space 3}0.000{col 54}{space 4} 2.470064{col 67}{space 3} 3.550021
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.059533{col 26}{space 2} .0576996{col 37}{space 1}   87.69{col 46}{space 3}0.000{col 54}{space 4} 4.946444{col 67}{space 3} 5.172622
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid6, label word dec(3) e(n1 n0) append ctitle(Non-democracy long) noni nor2 cttop("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid6.rtf"'"':bits_aid6.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid6.txt", label"':seeout}

{com}. 
. ***exclude humanitarian assistance
. 
. //
. use fpa-aid_bits_final,clear
{txt}
{com}. 
. teffects aipw (lnaid_noemergency lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lally lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 1.123e-22}  
Iteration 1:{space 2}EE criterion = {res: 2.567e-31}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    98,160
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}lnaid_noem~y{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.894911{col 26}{space 2} .1220257{col 37}{space 1}   31.92{col 46}{space 3}0.000{col 54}{space 4} 3.655745{col 67}{space 3} 4.134076
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.283759{col 26}{space 2} .0263129{col 37}{space 1}  200.80{col 46}{space 3}0.000{col 54}{space 4} 5.232186{col 67}{space 3} 5.335331
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //table 41
. outreg2 using bits_aid7, label word dec(3) e(n1 n0) replace addtext() noni nor2 ctitle("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid7.rtf"'"':bits_aid7.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid7.txt", label"':seeout}

{com}. 
. //table 42: democracies
. 
. ///short time horizon
> 
. teffects aipw (lnaid_noemergency lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lidis  lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio<4&dpi_yio!=.&p_polity2>=6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 1.897e-16}  
Iteration 1:{space 2}EE criterion = {res: 1.204e-25}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    20,228
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}lnaid_noem~y{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.193665{col 26}{space 2} .3175454{col 37}{space 1}   10.06{col 46}{space 3}0.000{col 54}{space 4} 2.571288{col 67}{space 3} 3.816043
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2}  5.76483{col 26}{space 2} .0610609{col 37}{space 1}   94.41{col 46}{space 3}0.000{col 54}{space 4} 5.645153{col 67}{space 3} 5.884507
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid8, label word dec(3) e(n1 n0) replace ctitle(Democracy short) noni nor2 sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid8.rtf"'"':bits_aid8.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid8.txt", label"':seeout}

{com}. 
. ///long time horizon
> 
. teffects aipw (lnaid_noemergency lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lidis  lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio>=4&dpi_yio!=.&p_polity2>=6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 1.293e-15}  
Iteration 1:{space 2}EE criterion = {res: 1.983e-20}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    16,861
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}lnaid_noem~y{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.052455{col 26}{space 2} .4766443{col 37}{space 1}    6.40{col 46}{space 3}0.000{col 54}{space 4} 2.118249{col 67}{space 3}  3.98666
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.971271{col 26}{space 2} .0656052{col 37}{space 1}   91.02{col 46}{space 3}0.000{col 54}{space 4} 5.842687{col 67}{space 3} 6.099855
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid8, label word dec(3) e(n1 n0) append ctitle(Democracy long) noni nor2 cttop("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid8.rtf"'"':bits_aid8.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid8.txt", label"':seeout}

{com}. 
. //talbe 43: non-democracies
. //short time horizon
. teffects aipw (lnaid_noemergency lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lidis  lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio<10&dpi_yio!=.&p_polity2<6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 6.054e-19}  
Iteration 1:{space 2}EE criterion = {res: 1.873e-30}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    31,324
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}lnaid_noem~y{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.781037{col 26}{space 2} .5036267{col 37}{space 1}    7.51{col 46}{space 3}0.000{col 54}{space 4} 2.793947{col 67}{space 3} 4.768127
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.204376{col 26}{space 2} .0456368{col 37}{space 1}  114.04{col 46}{space 3}0.000{col 54}{space 4}  5.11493{col 67}{space 3} 5.293823
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid9, label word dec(3) e(n1 n0) replace ctitle(Non-democracy short) noni nor2 sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid9.rtf"'"':bits_aid9.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid9.txt", label"':seeout}

{com}. 
. //teffects overlap
. 
. ///long time horizon
> 
. teffects aipw (lnaid_noemergency lp_polity2  lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lgdpgr_i lpta colonial_tie ln_distance lunsc_member lidis  lcoldwar) ///
> (lbit_ratf lag_tbit lp_polity2 lln_gdppc lwdi_gdpgr lwdi_fdiin lwdi_natrr llnpop lconflict lpta lally lunsc_member colonial_tie  lcoldwar) if oecd_i==1&oecd_j==0&dpi_yio>10&dpi_yio!=.&p_polity2<6&p_polity2!=.

{res}{txt}Iteration 0:{space 2}EE criterion = {res: 5.261e-22}  
Iteration 1:{space 2}EE criterion = {res: 7.313e-31}  
{res}
{txt}Treatment-effects estimation{col 49}Number of obs {col 67}= {res}    19,985
{txt:Estimator}{col 16}:{res: augmented IPW}
{txt:Outcome model}{col 16}:{res: linear by ML}
{txt:Treatment model}{col 16}:{res: logit}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}lnaid_noem~y{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}ATE          {txt}{c |}
{space 3}lbit_ratf {c |}
{space 3}(1 vs 0)  {c |}{col 14}{res}{space 2} 3.026443{col 26}{space 2} .2756954{col 37}{space 1}   10.98{col 46}{space 3}0.000{col 54}{space 4}  2.48609{col 67}{space 3} 3.566796
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}POmean       {txt}{c |}
{space 3}lbit_ratf {c |}
{space 10}0  {c |}{col 14}{res}{space 2} 5.001045{col 26}{space 2} .0575268{col 37}{space 1}   86.93{col 46}{space 3}0.000{col 54}{space 4} 4.888295{col 67}{space 3} 5.113796
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. outreg2 using bits_aid9, label word dec(3) e(n1 n0) append ctitle(Non-democracy long) noni nor2 cttop("AIPW") sortvar(r1vs0.lbit_ratf r0.lbit_ratf)
{txt}{stata `"shellout using `"bits_aid9.rtf"'"':bits_aid9.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid9.txt", label"':seeout}

{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}I:\Sebastian\Statistics\Stata\Stata13\fpa-bitsaid-appendix-d.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}29 Jul 2025, 15:58:27
{txt}{.-}
{smcl}
{txt}{sf}{ul off}